<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
<head>
<base href="<?php echo Yii::app()->request->baseUrl; ?>/static/admincp/" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="Paweł 'kilab' Balicki - kilab.pl" />
<title>Admin Control Panel</title>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/navi.css" media="screen" />
<!--jquery-->
<script type="text/javascript" src="../libs/jquery/jquery.min.js"></script>
<!--jquery ui-->
<script type="text/javascript" src="../libs/jquery/ui/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="../libs/jquery/ui/themes/black-tie/jquery-ui.min.css" media="screen" />
<!--jquery validation-->
<script type="text/javascript" src="../libs/jquery/validation/jquery.validate.min.js"></script>
<!--fancybox-->
<script type="text/javascript" src="../libs/jquery/fancybox/jquery.fancybox.pack.js"></script>
<link rel="stylesheet" type="text/css" href="../libs/jquery/fancybox/jquery.fancybox.css" media="screen" /> 

<script type="text/javascript" src="../libs/common.js"></script>
<script type="text/javascript">
var DOMAIN = 'http://<?php echo DOMAIN; ?>';
$(function(){
	//$(".box .h_title").not(this).next("ul").hide("normal");
	$(".box .h_title").not(this).next("#home").show("normal");
	$(".box").children(".h_title").click( function() { $(this).next("ul").slideToggle(); });
});
</script>
</head>
<body>
<div class="wrap">
	<div id="header">
		<div id="top">
			<div class="left">
            	<?php //o(Yii::app()->admin->guestName); ?>
				<p>Welcome, <strong><?php echo Yii::app()->admin->name; ?></strong> [ <a href="<?php echo Yii::app()->baseUrl.'/admincp/auth/logout' ?>">logout</a> ]</p>
			</div>
			<div class="right">
				<div class="align-right">
					<p>Last login: <strong>23-04-2012 23:12</strong></p>
				</div>
			</div>
		</div>
		<div id="nav">
			<ul>
				<li class="upp"><a href="javascript:void(0);">Main control</a>
					<ul>
						<li>&#8250; <a href="javascript:void(0);">Visit site</a></li>
						<li>&#8250; <a href="javascript:void(0);">Reports</a></li>
						<li>&#8250; <a href="javascript:void(0);">Add new page</a></li>
						<li>&#8250; <a href="javascript:void(0);">Site config</a></li>
					</ul>
				</li>
				<li class="upp"><a href="<?php echo LINK_ADMINCP_ARTICLES; ?>">Manage content</a>
					<ul>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_ARTICLES; ?>">Posts</a></li>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_CATEGORIES; ?>">Categories</a></li>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_ARTICLES.'?type=page'; ?>">Page</a></li>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_MEDIA; ?>">Media</a></li>
					</ul>
				</li>
                <li class="upp"><a href="javascript:void(0);">Management</a>
					<ul>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_MENU; ?>">Menu</a></li>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_EMAILTEMPLATES; ?>">Email template</a></li>
                        <li>&#8250; <a href="<?php echo LINK_ADMINCP_LANGUAGES; ?>">Languages</a></li>
                        <li>&#8250; <a href="<?php echo LINK_ADMINCP_SUBSCRIBERS; ?>">Subscribers</a></li>
					</ul>
				</li>
                <li class="upp"><a href="javascript:void(0);">Advertisements</a>
					<ul>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_ADVERTISEMENTS.'/advertisers'; ?>">Advertisers</a></li>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_ADVERTISEMENTS.'/campaigns'; ?>">Campaigns</a></li>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_ADVERTISEMENTS.'/banners'; ?>">Banners</a></li>
                        <li>&#8250; <a href="<?php echo LINK_ADMINCP_ADVERTISEMENTS.'/zones'; ?>">Zones</a></li>
					</ul>
				</li>
				<li class="upp"><a href="<?php echo LINK_ADMINCP_USERS; ?>">Users</a>
					<ul>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_USERS; ?>">Uses</a></li>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_ROLES; ?>">Roles</a></li>
						<li>&#8250; <a href="javascript:void(0);">Lock users</a></li>
					</ul>
				</li>
				<li class="upp"><a href="<?php echo LINK_ADMINCP_CUSTOMCONFIGS; ?>">Settings</a>
					<ul>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_CUSTOMCONFIGS; ?>">Site configuration</a></li>
						<li>&#8250; <a href="<?php echo LINK_ADMINCP_USERS; ?>/changepassword">Change password</a></li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
	
	<div id="content">
		<div id="sidebar">
			<!--<div class="box">
				<div class="h_title">&#8250; Main control</div>
				<ul id="home">
					<li class="b1"><a class="icon view_page" href="">Visit site</a></li>
					<li class="b2"><a class="icon report" href="">Reports</a></li>
					<li class="b1"><a class="icon add_page" href="">Add new page</a></li>
					<li class="b2"><a class="icon config" href="">Site config</a></li>
				</ul>
			</div>-->
			
			<div class="box">
				<div class="h_title">&#8250; Manage content</div>
				<ul>
					<li class="b1"><a class="icon page" href="<?php echo LINK_ADMINCP_ARTICLES; ?>">Articles</a></li>
					<li class="b2"><a class="icon category" href="<?php echo LINK_ADMINCP_CATEGORIES; ?>">Categories</a></li>
					<li class="b2"><a class="icon add_page" href="<?php echo LINK_ADMINCP_ARTICLES.'?type=page'; ?>">Page</a></li>
					<li class="b1"><a class="icon photo" href="<?php echo LINK_ADMINCP_MEDIA; ?>">Media</a></li>
				</ul>
			</div>
			<div class="box">
				<div class="h_title">&#8250; Manage users</div>
				<ul>
					<li class="b1"><a class="icon users" href="<?php echo LINK_ADMINCP_USERS; ?>">Users</a></li>
					<li class="b2"><a class="icon add_user" href="<?php echo LINK_ADMINCP_ROLES; ?>">Roles</a></li>
					<li class="b1"><a class="icon block_users" href="javascript:void(0);">Lock users</a></li>
				</ul>
			</div>
			<div class="box">
				<div class="h_title">&#8250; Settings</div>
				<ul>
					<li class="b1"><a class="icon config" href="<?php echo LINK_ADMINCP_CUSTOMCONFIGS; ?>">Site configuration</a></li>
					<li class="b2"><a class="icon contact" href="<?php echo LINK_ADMINCP_USERS; ?>/changepassword">Contact Form</a></li>
				</ul>
			</div>
		</div>
		<div id="main">
			<?php echo $content; ?>
		</div>
		<div class="clear"></div>
	</div>

	<div id="footer">
		<div class="left">
			<p>Design: <a href="http://kilab.pl">Paweł Balicki</a> | Admin Panel: <a href=""><?php echo Yii::app()->request->baseUrl; ?></a></p>
		</div>
		<div class="right">
			<p><a href="">Example link 1</a> | <a href="">Example link 2</a></p>
		</div>
	</div>
</div>

</body>
</html>